<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>价目表更新</title>
<%@include file="../include/include.jsp"%>
<link rel="stylesheet" type="text/css" href="${csspath }/public.css" />
<script type="text/javascript" src="${jspath}/jquery/jquery-1.8.3.js"></script>
<link rel="stylesheet" type="text/css"
	href="${bootstrapPath}/css/bootstrap.css" />
<script type="text/javascript" src="${bootstrapPath}/js/bootstrap.js"></script>
<script type="text/javascript"
	src="${bootstrapPath}/js/bootstrap3-validation.js"></script>
<script type="text/javascript" src="${layerPath}/layer.js"></script>
<script type="text/javascript" src="${jspath}/jquery/jquery.alerts.js"></script>
</head>

<script type="text/javascript">
	$(function(){
		
		$("#updateBtn").click(function(){
			$.ajax({
				url : '${webcontext}/crmdp/dealer/coupon/saveTicketPriceOfDealer',
				type : 'post',
				dataType: "json",
				data : $("#ticketLinePriceForm").serialize(),
				beforeSend: function(){ 
					layer.load(1);
				},
				success : function(data){
					layer.closeAll('loading');
					if(data){
						jAlert("更新成功", "提示信息");
					}else{
						jAlert("更新失败", "提示信息");
					}
				}
			});
		})
	})
</script>

<body>
	<form action="#" id="ticketLinePriceForm">
		<button type="button" class="btn btn-success btn-sm" id="updateBtn">更新价目表</button>
	</form>
</body>
</html>